﻿using System.Threading.Tasks;

namespace Sidvall.Net
{
	public static class SoapClientExtension
	{
		#region Public Members

		#region SendSoapAsync

		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "1#")]
		public static async Task<HttpResponse> SendSoapAsync(this ISoapClient client, string requestUri, string content, string soapAction)
		{
			return await client.SendSoapAsync(new System.Uri(requestUri, System.UriKind.RelativeOrAbsolute), soapAction, content).ConfigureAwait(false);
		}

		#endregion

		#endregion
	}
}
